package com.pipayshop.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BuyDetail {
    /**
     * 下单时的pi单价
     */
    private BigDecimal piPrice;
    /**
     * 下单时的单价
     */
    private BigDecimal price;
    /**
     * 优惠后的单价
     */
    private BigDecimal discount;
    /**
     * 该商品的下单数量
     */
    @ApiModelProperty("该商品的下单数量")
    private Integer number;
    /**
     * 商品的名字
     */
    private String commodityName;
    /**
     * 商品图片
     */
    private String avatarImag;
    /**
     * 商品的规格
     */
    private String commoditySpecification;
;
}
